﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using SqlSugar;

namespace Aioms.Models
{
    ///<summary>
    ///权限表
    ///</summary>
    [SugarTable("enterprise_permission")]
    public partial class EnterprisePermission
    {
        public EnterprisePermission()
        {
            this.Created = DateTime.Now;
            //this.Updated = DateTime.Now;
        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        [JsonProperty("id")]
        public int Id { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "enterprise_id")]
        [JsonProperty("enterprise_id")]
        public long Eid { get; set; }

        /// <summary>
        /// Desc:基本权限ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "base_permission_id")]
        [JsonProperty("base_permission_id")]
        public long Bspmid { get; set; }

        /// <summary>
        /// Desc:唯一标识
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "action_key")]
        [JsonProperty("action_key")]
        public string ActionKey { get; set; }

        /// <summary>
        /// Desc:属于大的分类，可能是Controller、大的DIV、或菜单组
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "node")]
        [JsonProperty("node")]
        public string Node { get; set; }

        /// <summary>
        /// Desc:权限的类型：url、页面元素、菜单
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "type")]
        [JsonProperty("type")]
        public string Type { get; set; }

        /// <summary>
        /// Desc:权限的类型：url、页面元素、菜单
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(ColumnName = "path")]
        [JsonProperty("path")]
        public string Path { get; set; }

        /// <summary>
        /// Desc:菜单名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "name")]
        [JsonProperty("name")]
        public string Name { get; set; }

        /// <summary>
        /// Desc:父ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "parent_id")]
        [JsonProperty("parent_id")]
        public long ParentId { get; set; }

        /// <summary>
        /// Desc:排序ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "sort_id")]
        [JsonProperty("sort_id")]
        public long SortId { get; set; }

        /// <summary>
        /// Desc:0-隐藏 1-显示
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "status")]
        [JsonProperty("status")]
        public int Status { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "created")]
        [JsonProperty("created")]
        public DateTime? Created { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [SugarColumn(ColumnName = "modified")]
        [JsonProperty("modified")]
        public DateTime? Modified { get; set; }
    }
}
